package routers

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/context/param"
)

func init() {

	beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Auth"] = append(beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Auth"],
		beego.ControllerComments{
			Method: "ObjectAuth",
			Router: `/object-auth`,
			AllowHTTPMethods: []string{"post"},
			MethodParams: param.Make(),
			Params: nil})

	beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Auth"] = append(beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Auth"],
		beego.ControllerComments{
			Method: "TmpAuth",
			Router: `/tmp-auth`,
			AllowHTTPMethods: []string{"post"},
			MethodParams: param.Make(),
			Params: nil})

	beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Block"] = append(beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Block"],
		beego.ControllerComments{
			Method: "Add",
			Router: `/add`,
			AllowHTTPMethods: []string{"post"},
			MethodParams: param.Make(),
			Params: nil})

	beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Block"] = append(beego.GlobalControllerRouter["open_manjing/oss/controllers/cluster:Block"],
		beego.ControllerComments{
			Method: "Del",
			Router: `/del`,
			AllowHTTPMethods: []string{"post"},
			MethodParams: param.Make(),
			Params: nil})

}
